Extract raw type if CDI proxy

it avoid CDI proxy problems