Revert "Let's actually use the output callback to output variables instead of directly writing it"

Turns out in some cases we actually get Expressions in here that are no Variables..

Time to check this on runtime using dynamic_cast I guess.

This reverts commit 114f6e6b606f57dcb372514a310310263ad67c7f.