Set same criteria for currency code validity in serializedtypes.js as currency.js.