turn enum TiePos into enum class

wonder whether for that one time an overloaded operator& would be worth
the effort?