Add qualname attribute to variable