Support for default semantic actions.

SemanticAction now have a default behaviour which will reduce overhead
in some common cases.
Improved debugging log output.