CRM-13234 define type for 'Country' custom fields (integer) as e-Notice was picked up by tests
updated example & a couple of tidy ups to throw API_Exception rather than legacy
Merge pull request #1476 from eileenmcnaughton/CRM-13234

Crm 13234 -fix for observed failure