Added hg::currency::validCode() function.