Some progress. `tests/main.cpp` fails in non-deterministic way.

There probably is some kind of a big fail in synchronization code or
something. Leaving it for further investigation.
Fixed logic problem, slapped `tokenize` into hell. Still broken.

This time I am mostly sure it's just a synchronization problem.
Works. Lots of fixes, new magic feature for `iterator_wrapper`.