Convert id into MongoID if its a string. Closes #20