Support theme attributes referencing attributes.
Fix overlayed theme attribute lookup in ShadowResources