nir: Fix undef creation in loop unrolling
Copy_deref intrinsics don't set the num_components, so we need to get it from the destination. Missing this was causing some invalid NIR being produced from shader-db.
Fixes: e8a8937a "nir: add partial loop unrolling support"