Add examples.

These are mostly former manual tests that seem useful for
demonstrating some feature to learners.

Change-Id: I06d895ebdee1280699416cf4930a08602951aaf7
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Add failing autotests for bugs.

Change-Id: I217eac496994fdddf6a4577bddd79f3d76bba450
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>