Correct handling of conditionals

Made conditional trees collapse into a single conditional node, instead
of having a tree-like structure with each else-if being a sub-branch on
the previous one.

Noticed that function calls are not handled properly resulting in the
call to posSum in conditional.txt to be expressed wrongfully in the AST.