Adds a maximum recursion depth limitation to ShouldBeEquivalentTo.