Implement the usual toString(), equals(), and hashCode() methods for Refs.
There is no need for the package prefix.
Tests for method mapAccumL().