[FIX] XQuery, JSON Serializer, output of element names. Closes #614