Generalize the PackageMatcher to an ObjectMatcher.
Add iterators exhaustion testing function.
Fix TypeError raised when Base.history_undo called with a nonempty transaction (RhBug:878348)