added typestr hooks into TypeSystem