Added stubs for variable expansion; disable optimization in debug-mode.
Added a seemingly working expand_aliases().