The little gourd can shoot its seeds nearly 40 feet, but until now, the mechanism behind the plant’s power and proliferation was poorly understood.