Made a recursive merger for nested BSON docs.