Script: support for PayToScriptHash

Fixes #5