Added support for ShellIterator.hasNext and for the rest of the db.collection methods