Aspects of symplectic dynamics and topology: gauge anomalies, chiral kinetic theory and transfer matrices