Fix stride related bug in Canvas immediate API
Add test case for 3D geometries in immediate API
Merge pull request #2255 from elemoine/complexgeom

Fix canvas immediate API for cases where stride ≠ 2