Generic equivalency constraint

- Made equivalency constraint class generic, because object types will
not be supported in initial object graph comparison.