NaN checking per ozten suggestion, tests tweaked
Merge pull request #28 from mozilla/tweak-duration-typechecking

NaN checking per ozten suggestion, tests tweaked