Fix bug with comparing imported entities.
Fix bug with comparing imported entities.

cellml/libcellml,nickerso/libcellml,nickerso/libcellml,cellml/libcellml,nickerso/libcellml,cellml/libcellml,nickerso/libcellml,cellml/libcellml