Fixes #286. make long attribute the default

#286 

This adds a new setting `namedAttributes` that's set to `false` by default.
When it's set to `false` it generates one field named `attributes` for all attributes.

/cc @martiell