Upsets and unity get Madagascar moving