Add type casting to generated module

In many cases it is desirable that an API exposes type information about the fields in that endpoint. JSON and YAML have possibilities for this type information (compare `{ "id": "12" }` and `{ "id": 12 }`)
This PR adds the possibility of setting types on fields in `generator.yml`