I pushed a set of commits in master removing the valueint, relying on valuedouble, plus some macros.
I will think a bit more about backporting or making a dedicated fix for 4.4 branch.
Testing and reporting back the results would be very appreciated.