Bug fixes

* Support integers for sample rate
* Add "other" clause to parse_value to prevent crashing
  when there's a badly encoded value.