RUBY-843 the listCollections and listIndexes commands can return a cursor

for now, it works better this way because otherwise it'd be ugly:

if result['collections']
  return result['collections']
else
   ....