Bug 26654 (Part 1: ConstrainBooleanParameters + nits)

Split https://github.com/w3c/mediacapture-main/pull/22 into two parts on request.