jpype backend: {p,}read_chunk changed to support bytearrays