Genericity and contragredience in the local Langlands correspondence