Fix parsing of stats with sample rate

Also addresses error-reporting of same, which would incorrectly show the
sample rate when it was unable to recognise the stat type

Fixes #2