GROOVY-3689 - Element.serialize

for https://jira.codehaus.org/browse/GROOVY-3689