lottie/vector: return correct number from segments() api.