Convenience ScriptBuilder.addChunk() method can add arbitrary script chunks.
Fix 'shortest possible pushdata' logic for transaction inputs. Also add a testcase.