fix type mismatch bug in signrawtransaction

The 'signatures' key is being read as a (empty) list, but treated as a dict. It looks like #464 and #550 may be related. I was able to sign an offline transaction with this fix in place.

Feel free to re-implement to make this more python-ish.