Hooking scopes onto the CompoundStatement nodes. Fixed bug in checkIfStmt assuming the statements always were SimpleCompoundStatements.