Fix memory leaks for iOS. Fix MgBaseShape::getExtent(). Add isCommand().