Add ArrayAccess and ResultSet functionality