get_codes: use content constraint first, only if it failes, load unconstrained code list. Allow parsing of periods such as 2010-Q3 and 2011-S2'