session: added support for job arrays