add isNaN and isFinite as native functions
Merge branch 'pr/528' into dev