SI-5217 Companion privates in scope of class parms

Test of the same. It progressed in 2.10.1.

Review by @lrytz @gourlaysama