Fix area generation bug with multiple elements above one another.
Fix some grid\mesh generation bugs.