Layer serialization matches Waag's API