Cannot use algorithms 12 and 14 despite having specified json=compute option

When trying to solve a model under perfect foresight using algorithms 12 ou 14, Dynare requires the json output of the model. In the attached example, I try to simulate a backward-looking model with algorithm 14 and the json=compute option is specified at the top of the mod file.

Dynare actually produces json files but cannot apparently use them and returns an error :

Error using sim1_purely_backward (line 30)
Algorithms solve_algo={12,14} require json output of the model (use json=compute option)

If ones actually tries to read the json files by running :

jsonfile = fileread(sprintf('%s/model/json/modfile-original.json', M_.fname));
json = jsondecode(jsonfile);

it gets :

Error using jsondecode
JSON syntax error at line 33, column 72 (character 4353): expected value but found 'dates'.

The problems seems to be related to initval_file() :

{"statementName": "initval_file", "options": {"firstsimulationperiod": dates(database.lastobservedperiod+1), "lastsimulationperiod": dates(database.lastobservedperiod+len-1), "series": "database"}},

BugJson.7z