Simpler replicateM_