Support @reverse in flattening (node map generation)