Replaced the related country field with a simple code string field and a...

...dded logic to interpret the string code as a country when restoring the object.