nir: Add a helper for getting the alignment of a deref