adds unique key and collection getters to metadata model