Fix a NoMethodError on Fixnum metrics

Metrics that come back as a Fixnum fail the nan? test at runtime in renderer.rb:state_chart.

Cheers