fix Type::getId() (static versus instance)