Do not modify frozen string

bnc#906694
This could be just `type`, as long as we don't shadow the accessor with a local variable.