ECSignature: enforce valid hashType in toScriptSignature
package: sinon 1.12.1