Wales survived an early wobble against Uruguay at the Millennium Stadium to win their opening Pool A game, 54-9, with a bonus point to boot.