Improved support for expressions

This code was never meant to be more than a snippet. At this point in
time I would suggest to refactor it and do a proper exception handling.
This patch is simply horrible, but it was a needed quick fix.

The method garbageCollectAuxiliarConcepts can be completely ignored.