Getblockhash and getblock template

Fix some type wranging in unmarshal for getblocktemplate