Just applying what @gerddie did in 57f166ec ("compiler/microsoft: Pass resource array parameters and ID as a struct") to CBVs.
/cc @gerddie