SI-5217 Companion privates in scope of class parms

Test of the same. It progressed in 2.10.1.
Merge pull request #4092 from som-snytt/issue/5217

SI-5217 Companion privates in scope of class parms