JsonReferenceErrors: remove an unused enum entry
JsonRef: start to convert error messages to use a resource bundle

All that is left to do is getting rid of RefSanityChecks.