Flow past a square-section cylinder with a wavy stagnation