If the enum declaration is not opaque, setting `memtype = Type::int32;` is valid.