Modifications to dict_equal and Dataset.__eq__

* Addressing some comments in code review