Rewrite model uniqueness validation

Tests for compound unique keys (multiple columns are unique together)
now work as expected.

No longer test that all unique columns are declared unique in the tests.