More work on the symbol table

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>