Add @var annotations to trait fields