Fixed code-gen bugs in data<->entity translations and async REST server methods.