Move extglob to global scope.
Make sure we don't modify 'cur' in _ipset_complete_iface_spec() and _ipset_complete_hostport_spec().