issue with dependency groups

Running the master version of pirum on php 5.4.10, I'm having issues publishing packages with dependency groups. The issue seems to be related to the simplexml api. This patch partially fixed the issue for me, in that the packages are now installable, but for some reason each install group appears twice in the generated html page.