Array.indexOf/lastIndexOf (closes #1242)

This requires the hxcpp pull request (https://github.com/HaxeFoundation/hxcpp/pull/7) to be merged. Unit tests are ok. I also tested the JS target with plain HxOverrides (no Array.indexOf case).