I think this has already been fixed. Running your code with the current gitversion seems to show the correct result.
I took time to compile the git version and I can confirm that it fixed my issue :) Thank you very much for your time! -- Étienne Pflieger
