Fixed compilation on DMD 2.066

`isNaN`/`isInfinity` no longer work with integers and `2 * v2` without
assigning to a variable triggered a warning.