Davide D'Alto FWIW, I can reproduce it with 5.2.0-SNAPSHOT and the OP test case.
I'll take a look tomorrow to see what's going on.