Fix bug with no-op transitions

Closes #43
Closes #44
Closes #48

Thanks to @KidkArolis for pointing out the issue and providing the test
case.