Amend railways in where clause.

Some features disappeared after the refactoring, so this at least
makes the where clause match the case clause entries.

Fixes #364