Improve field-type support in create calls

Check the type of fields being populated in create calls and convert
values to the correct type.