RemoveXSyncMode() functions clear arrays when empty

- RemoveXSyncMode() functions now clear the arrays if they are empty.
- Renamed Int auiArguments to Int aiArguments if they can be negative ;)