fix bug #171: if identity_eq is true then we do not need to call compareInternal