[GHC] #10649: Performance issue with unnecessary reboxing