Optimized Array Handling in JRE impl

I optimized some code in the JRE Arrays class. This made JBox2D run x-times faster.
I'm not sure it's a good idea because there are some weird programs that depends on ClassCastException to decide for example control flow, so they won't work.