Revert "Remove HXP.indexOf for haxe 3.1 Array.indexOf"

This reverts commit 84fc158e0e05034b5187a33e4c28a24f13cb7978.
Remove HXP.indexOf for haxe 3.1 Array.indexOf using conditional compilation