Fix corner case in reference renaming Renaming a packed reference should not pack another reference which happens to be in both loose and pack state.