resolves #367 resolve attribute references in target of include macro