fix Issue 9091 - Using __traits(getMember) on template argument fails inside member function

Use ThisExp instead of VarExp to avoid interpretation on template arguments.