Fixed missing 'typename' keywords in generator code