This allows getting raw transaction data from the wallet even if the transaction is no longer in the blockchain / mempool (for example if it got orphaned due to malleability abuse).
Allows a verbose flag just like getrawtransaction
.
Was also proposed in #3220, but is urgently useful now.