Getter support for transition.{delay,duration}.

Fixes #1773.