PointerByReference can be manually changed to type safe Java arrays in bindings