[ctioga2] utility function to cluster elements in a list that have the same "value" (ie return value of a given funcall)

git-svn-id: svn+ssh://rubyforge.org/var/svn/ctioga2/trunk/ctioga2@528 86c91514-0d3b-42e0-aed1-4dfce116d947