Consolidates asserts#equal branches for keyed collections (Map/Set) and supports deep equality of Map keys #3258
In my fix for #3235, I simply added an additional branch to asserts#equal() to deeply compare
Therefore, rather than introduce a common conditional branch for all iterables, I combined the logic for keyed collections only. I'm currently detecting them with duck typing, but please let me know if an explicit
I also realised that the current release (0.22) and my fix also fail to determine if the keys of a keyed collection are deeply equal (i.e.
I should highlight that there's a potential performance downside to my changes: disregarding recursion, the existing solution for both