APInt: Unfold return expressions so RVO can work.

Saves a couple of expensive deep copies. NFC.