fixes #311 so we can use a directive for a pager across a collection/array/table