Fixes dict union bug and adds test for group traversal