Namespaced transitions.

Fixes #24 #2076.