Fix comparision to properly treat numeric fields

Also revert the previous commit to parse.rb