hashOf: float portability fix
replace magic numbers with traits
more tests and comments
Merge pull request #672 from IgorStepanov/hashoffix

hashOf: float portability fix