allow typedefs for haxe.Rest