system.db.runNamedQuery is used in two different scenarios that use two different parameter settings: gateway and project. As I do have several scripts running on gateway scope and project scope, I always have to switch between ('project', 'NamedQueryPath', 'params') and ('NamedQueryPath', 'params') because they are incompatible.
PLEASE make the 'project' parameter optional in the project scope.. or better: enable cross reverence to other projects!