Fix identifierlist traversal to handle functioncalls