Implemented KAT.model.Field.types.reference and fixed a bunch of typos