feat(stencil): implement serializer for Stencil/Elements

See #22. To test, click an Element in your diagram and check the JS
developer console for serialized output.