Map reduce result did not convert NativeArray to BasicDBList correctly

This fixes that. I added a test for this case (which fails without the fix)