fixes to ChainTransactionInput/Output API usage