Fixed array behaviour with array.push()