Make IsUnspendable accept the CTxOut directly instead of the script.