Fixed rail iomaps, added chaining test. Still have a bug
Fixed rechaining bug.
Merge branch 'chaining'