Decred shares code with bitcoin and a recent change broke signing stake based inputs. Add decred specific script construction and fix tests.