CORE: add concat, flatten.