fix bug in constructing entities from non-list-attributes which led to a wrong reference unification of identical objects