Make dsl elements serializable.
Merge pull request #68 from axel22/master

Make dsl elements serializable.