Also fixes an issue with via type property and makes property comparisons in rule case-insensitive. Fixes https://gitlab.com/kicad/code/kicad/issues/5754