CScriptCheck represents a full closure of the call to VerifyScript.
Currently it just saves the outputted error code; update it to also save
the metrics return value.
A small test (taking advantage of an existing test that uses CScriptCheck) is
included.
Depends on D4918