Fix bug in threshold parsing

The first value, i.e., the one not preceded by a semicolon, was not
being recognised by the parser and therefore metric parsing was failing.
Modified the threshold parser to handle both cases correctly.

Closes #4.