ctx.apply should generate different ids within few calls (close #35)

@mishanga take a look