Use a copy of the `p` argument in `Categorical` constructor.