Flatten attributes that are arrays
Fix issue with alternate idAttribute
Merge pull request #12 from mojotech/pt/bugs

Pt/bugs