Added ability to compare Types based on the equality of their primary keys.