optimize tarray read access further and do some cleanup
optimize tarray read access further and do some cleanup

pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe