MRQuery3 runnable

1. Add MRQuery in the build file
2. Fix the transaction reset issue after Map phase (otherwise there would be assertion errors) 
3. Fix the iterator problem in MRQuery3

Now the MRQuery3 should be runnable.