Returned to_json to Element and Collection
Refactored the initialization of Variations