Optimized Array Handling in JRE impl

I optimized some code in the JRE Arrays class. This made JBox2D run x-times faster.
Well the class is inner and static the code should be inlined anyway.

My fix would also prevent class cast excpetions.