FlowEngine: set cell's id in periodic triangulations + couple smallfix