Fixing array classloading when custom class loaders are involved.

Now the CustomClassLoader test passes.