Mutational and structural analysis of an ancestral D-type dye decolorizing peroxidase