Add getSubType, shapeWillDelete and getShapeIndex.