Make inputs.boolean parse fields from JSON correctly

See #197.