Don't initialize repository properties as lists.
Fixed duplicate generation of Id for resources that has hidden base class in middle. Also added peverify test.