When group memberships during contact merge are changed, the (relevant) funding case permission cache is not cleared because no entity event for GroupContact is dispatched. Thus, hook_civicrm_merge has to be used or CiviCRM core needs to be patched to dispatch appropriate events.