HaxePunk/HaxePunk — pull request #172 by azrafe7 (2013-12-11 03:24:09+00:00)
Title: fixed Lambda.indexOf() mem leaks in flash - issue #171

Fixed Lambda.indexOf() mem leaks in flash,
added HXP.indexOf() as a platform-aware substitute,
changed List instances to Array ones in Console.

Basicly every spot in which Lambda.indexOf() was used, has been replaced with a call to the new HXP.indexOf():

```actionscript
public static inline function indexOf(arr:Array, v:T) : Int {
var i = 0;
#if (flash || js)
i = untyped arr.indexOf(v);
#else
i = Lambda.indexOf(arr, v);
#end
return i;
}
```

Lists have been removed because they also seem to leak in combination with Lambda.indexOf(), but there's no workaround for that, yet.

Now memory should not spike like before in flash, which occurred especially when enabling the Console.