let prewalk depend on 'end?'.
fix behaviour of 'next' and 'end?'.
fix tests for 'end?'.
add tests for prewalk. (closes #10)