Fix for pie charts with no data
move to the _flattened key
reference flattened
Update fixtures
Add flattenSearchResponse to stub index pattern
Merge with w33bles displayName changes
Adding tests and fixing a bug with cloning

- Closes #2040
- Add basic testing
Merge pull request #2038 from rashidkpc/fix/pristine-source

Dont modify _source
Merge pull request #2037 from lukasolson/issue-1958

Fix for pie charts with no data
Merge pull request #2041 from simianhacker/vis-quick-fix

Adding tests and fixing a bug with cloning