code: func (h *Hash) HasAttributes() bool {
  	return h.KeyType.Type.HasAttributes() || h.ElemType.Type.HasAttributes()
  }
docs: // HasAttributes returns true if the either hash's key type is user defined
  // or the element type is user defined.