CArray of CPointers and CArrays on JVM.

Also simplifies the logic of at_pos_boxed a bit.