fix(engine): Make taskEntity and executionEntity serializable

- add 'transient' to all attributes which are not persistent
- add a simple test case

related to #CAM-1866