code: function freeze(self) {
      var anything = self;
      if (anything.aclEntries) {
          anything.aclEntries = Object.freeze(anything.aclEntries);
      }
      if (anything.createdDate) {
          anything.createdDate = Object.freeze(new Date(+anything.createdDate));
      }
      if (anything.modifiedDate) {
          anything.modifiedDate = Object.freeze(new Date(+anything.modifiedDate));
      }
      return Object.freeze(anything);
  }
docs: turns the object deeply immutable.
  
  @param self to freeze.
  @return {T} self for convenience.
  
  @internal for library use only.