Tests for self-recursive blocks.

Might have been nice to get some kind of warning or hint,
but at least it doesn't crash.

This closes #112.