markup: add pickle support for Element