Make Premailer output the same type that it was given.

Works with either strings or ElementTree objects.

This can save time re-parsing the document if other operations need to
take place before or after Premailer.