The South African government has made some big changes to the rules about taxing dividends paid to foreign shareholders.