java: return empty array when op_count = 0, rather than NULL. this is to be consistent with all other bindings
8 files changed