Fixed bug where array bounds check was placed too far from statement.