Array indices are now casted to double to maintain compability with asm.js