[PATCH resend 2/2] msscript: Partially implement IScriptControl::AddCode().