Fix middle entity persistence issue where a deep persistence structure (e.g. CustomerAddress.address.phonePrimary.phoneNumber) will end up attempting to persist address with an assigned PhoneImpl instance that is missing a primary key.