Fixed generic types in codegen to clear unsafe typecasts, regenerated
API