Improved attribute expansion warnings