Refactor PersistentTraversable equals