Scotland's tax system is slightly separate from the rest of the UK's. But an old feature seems to be giving tax benefits as an offshore tax haven.