Fix RecordSet::toArray() used with with()