Fixed issue with referenced array operations

Did not affect write/read, except getarraysize and deletearray.
Special Thanks to Haru!

Signed-off-by: shennetsind <ind@henn.et>