RESTWS-451: Nested custom type will fail with conversion exception