- fixed a crash when generating gateways that use Nullable classes
- adding serialise / deserialise methods to DTO classes