(ref-max-history ref) (ref-max-history ref n)
Gets the max-history of a ref, or sets it and returns the ref