ensure that a type is passed to Module:type()