Add !important support for four-value rules, with tests

The regex change was given by Bartosz Dziewoński at
https://bugzilla.wikimedia.org/show_bug.cgi?id=61440#c1 .