A deal will allow Cook Islanders permanently migrating home from Australia to take their nest egg with them, plugging a gap in a pact with New Zealand.