Adding a type attribute to fieldType (Shelan's change)