Added missing optional for agencycode/@localtype