semantic_analyser.cpp: Correct typeid operator call

The typeid operator operates correctly on polymorphic types.
A pointer is not polymorphic, but a reference is; we were
extracting the type of a pointer, not from a reference.

Code now calls the tree building function. And segfaults...