fix:(animation): Animator does not correctly parse transition durations with multiple values

This fixes #2373

Unfortunately I don't really know how to write tests for that. Any idea would be welcome.