Improve thread safety and performance of ArrayBackedResultSet

JAVA-319 #fixes