Merge blank nodes that obviously refer to the same resource