Rename type_fields 'type' column to 'kind'
Add validation tests to TypeField model