Unify signing of name and non-name inputs.

Unify the signing of name and non-name inputs in the code.  This also
makes signrawtransaction work for name-operation transactions.