Add getters for transition.{attr,style}.

Proof-of-concept for #866.
Pretty sure we want the value returned by transition.attr to be the string-coerced value, not the input value. In other words, `f.__value__ = b += ""`.