Implemented / Fixed serialization of RestService.Primitive entities. Solves #44