pj_sequence: refactor utility methods
pj_sequence: refactor utility methods

This makes the experiment work properly.


Former-commit-id: b77e57233d50f8ff3f198a86278e188cc5b5687c
Former-commit-id: 50aacdac730cc7d7f0dde3fe93f494bef45a451e [formerly a5f340f7d324a46d42dd8dd72e72707664338f65] [formerly 31195f5acc7e14ee7522e678cab8eeb184119ac5 [formerly 5add2e15a6bd973a4280c8af9749804c1df100ea]]
Former-commit-id: 697e7c3963e2f3ef352fdfc9d285123f64b0aa50 [formerly 1e8a605a252e7d99814b38ae401cc2dd71f0e550]
Former-commit-id: c19857f939d486f0d54f288ffb3002db1c4deeb7
PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild