medium: cliformat: Fix CLI formatting for rules and id-refs

Adds regression test for new features and ensures that
values are not quoted unless necessary.
test: run acl test with 1.2 schema