Add memory tests for convex and compound shapes.