Array.indexOf/lastIndexOf implementation (refs HaxeFoundation/haxe#1242)

This is an implementation of Array.indexOf and Array.lastIndexOf methods for my upcoming pull request into Haxe repository.