fix qualified this expression for classes nested in generic classes