Part of effort to get a scriptsig push restriction consensuse rule that is actually effective in reducing third party malleability, see T667.
changes valtype to vector<uint8_t>, as appropriate for this file.
static -> inline to avoid unused warnings.