reactive: haxe 3 compatibility, better perf and unit test on priorityQueue