Add some Issue and Patchset getters too
A bit of correctnes refactoring