Fixed change cardinality command, fix #41

Fixed change cardinality command, which now works even if the relationship is unidirectional.