Convert measure types properly on input

Not perfectly happy with this solution.  Leaning toward letting the database
handle measure type conversions in all cases except searching.
Fixes assembla-93