Renamed template_field "type" column to "type_of_field".

Apparently "type" is a reserved word for column names and is used for
inheritance purposes. Who knew?