remove redundant ast group node
type check body of immediate call functions