Refactor type.py into a mixin class from which TypedField inherits.
Make checktype_seq() use checktype().