Workaround to bad array generation from Swagger. Fixes #5, #6.