Fix for referencing/dereferencing resultset arrayrefs