Patches for #4, REF, KVALITET

See commit logs. I'll see that I can come up with some tests that can be published - adjusted the existing tests for now.

Fixes #4, level 3 sub-attributes