Fixed as_pymongo to return the id (#386)