fixed handling of empty key in I18n
added some parser tests and fixed parsing of invalid varNames