chore(engine-rest): readd serialization of Serializable variables

- although this fails in most of the use cases in which the involved classes
  are not accessible for the REST API, this is existing API that cannot be
  broken

related to CAM-2435