Add typing rule for attribute references