Adding a method to get a mutable subdictionary.
Fixing a bug with getting the match index.