Ref. dynare#1771
mentioned in commit 1e5de7d7
mentioned in commit 6f23b167
mentioned in commit 60f72e96