Fix Android 2.2 compatibility

FroYo doesn't support some of Arrays' functions, such as copyOf() and
copyOfRange(). ArraysCompat implements all variants of those methods,
adding FroYo compatibility back
Merge pull request #126 from goncalossilva/2.3_fix_froyo_compatibility

Fix Android 2.2 compatibility