VariantMixin: Support boolean fields

Fixes #10749
3 jobs for master in 2 minutes and 54 seconds (queued for 7 seconds)
Status Name Job ID Coverage
  Test
canceled code-quality #24723

00:02:54

canceled pyright #24724

 
  Build
canceled linux #24725