fixed deletion of primitive multi valued references