Add Integration Tests for Map/Reduce

- Tweak a few test generators to restrict test strings to [0-9A-Za-z] to make Javascript happy
- Add some missing interfaces
- Clean up a memory leak