Generate Haxe and TypeScript with generic structs (fixes #94)