Fix NoMethodError on Fixnum metrics

Fixnum does not have #nan?
Merge pull request #3 from benmur/master

Fix a NoMethodError on Fixnum metrics