anchor.diff:      var ok = true;
       for (final dynamic element in value) {
         var valType = element.runtimeType;
  +      if (element is List) {
  +        valType = List;
  +      }
  +      if (element is Map) {
  +        valType = Map;
  +      }
         switch (valType) {
           case int:
             _writeInt(element);
  
positive.code:     value.forEach((key, val) {
        // Encode the key, can now only be ints or strings.
        final keyType = key.runtimeType;
        if (keyType is int) {
          _writeInt(key);
        } else {
          _writeString(key);
        }
        // Encode the value
        var valType = val.runtimeType;
        switch (valType) {
          case int:
            _writeInt(val);
  
negative.code:     // Check the keys are integers or strings.
      final dynamic keys = value.keys;
      var keysValid = true;
      for (final element in keys) {
        if ((element.runtimeType != int) || (element.runtimeType != String)) {
          keysValid = false;
          break;
        }
  