ASTNodes: implemented getType methods and fixed setters in JoinNode and SelectionNode