I opened an issue (that is way old in principle).
The problem is illustrated in a test (patch) and it has earlier been acknowledged to be a bug.
I would like to here some comments on it on: https://github.com/rails/rails/issues/7247
Thanks in advance.
jarl