allow elements to be serialized for execute, etc
Merge pull request #185 from neonstalwart/element/toJSON

allow elements to be serialized for execute, etc