Observations of the magneto-Rayleigh-Taylor instability and shock dynamics in gas-puff Z-pinch experiments