better assert check for numbers/NaN
Merge pull request #1 from adamrenklint/betterAssert

better assert check for numbers/NaN