add preliminary implementation of entities merging via sameAs property