I suggest a fuse or quality circuit breaker between the PW-ZW and the track if you're running modern locomotives.
GRJ is correct, but incomplete. Even when running ancient locos, an external fuse or breaker should be used, to protect the transformer & the house.
When Lionel came out with the whistle, before WWII, the #167 whistle controller converted the AC wave by having the voltage on one half-cycle higher an the other half cycle. (This could also be accomplished by putting a carbon-zinc D cell in series in the line. Polarity was not important. Probing into my memory, which is risky, later the design concept was changed to permit a bell or a whistle to be sounded, depending on which side of the AC wave had the highest voltage.