Improved JsonCreator for Element.