Flatten deeply-nested data attributes

fixes #13