message: fix type detection
diff: @@ -110,8 +110,14 @@ export namespace NBT {
  arr[i] = value;
  scope.push(type)
  }
  + if (typeof scope[0] !== 'object') {
  if (scope.every(val => val === scope[0]))
  scope = [scope[0]]
  + } else {
  + const base = JSON.stringify(scope[0]);
  + if (scope.every(val => JSON.stringify(val) === base))
  + scope = [scope[0]]
  + }
  return val(scope, arr);
  },
  write(buf, value, scope, find) {
  