Do not check relationship uniqueness for relationships with different types

signed-off-by: Jakub Wieczorek <jakub.wieczorek@neotechnology.com>