nir/clone: Add a helper for cloning most instruction types