Implement sigil, as per issue #5.

However due to problems with user-defined functions this can not be tested
reliably yet.