Tool for making a mesh from a dupligroup

Is there a tool that will transform an empty duplicating a group (dupligroup) into a mesh with correct UV map transformations, taking into account the following instancing constructs of blender in the nested hierarchy of said group:

  1. Nested dupligroups


  1. Verts duplication

In general, to accomplish this, it would merely be a plugin that performs Make Duplicates Real and joins meshes recursively.