$equals(dict(A, B) d1, dict(A, B) d2) compares two dictionaries d1 and d2 for equality. d1 and d2 are equal if they both are null or have equals keys assigned to equals values. Note: this method might be slow. In some cases a check for identity with the is operator might be sufficient.
