Avoid boxing booleans in compiled binding getters (#21878)