Correctly propagate boolean parameters.

This is for issue #4105.
The fix was tested.