1) added validation code to make sure that no goto instruction jumps directly to itself as this break the toDex component
2) added a check into toDex to detect self-jumps early on and make debugging easier

related to #148