Fix signing of createrawtransaction name_update's

Fix signrawtransaction to correctly handle transactions from createrawtransactions.  With this, it is now fully possible to do atomic name trades via RPC commands.  I've tried it out already with two wallets of mine.