Fix generator bug with using primitive types as type parameters