Fix + test for #81

Making collection map_reduce properly handle ObjectId fields