(#22699) set value_collection for boolean params

I'm not entirely confident that this is the right way to test things, since it involves calling `initvars`.