r762: fixed two independent bugs in ropebwt

These two silly bugs wasted me two days...