added recurcive call to take care of nested ObjectId

objectIds in a nested mongo schemas are not indexed properly, added recursive call