Refactored the comparison functions a bit. They now uses the same code to compare objects and functions: Objects without any comparison lfuns are now compared according to their addresses, to achieve a well defined internal order. Also, pointers to the same function in different objects of the same program are now compared according to their objects.