Some Flash microoptimization

Hard to measure, don't know if it makes a difference. :)
Use typed vectors in place of arrays, and avoid a slice() we don't need