BaseStores should have their own references and elements objects.
Merge branch 'hotfix/element-inheritance-fix'