When connecting outputs to inputs, cache its value in the input.

This will make sure the fee is also known after a blockchain replay.

I noticed that with this change we could have done without persisting input values to the wallet protobuf, at least for transaction we created outselves.