JRuby does not support Pointer#read_array_of_type the same way as Ruby FFI

See https://github.com/jruby/jruby/issues/607