A fire that forced Royal Dutch Shell to shut down some units and evacuate non-essential staff at its massive Singapore refinery on Wednesday has been contained after burning for nearly half a day.