Bug fixed - bubble types were not being saved in JSON output.
Refactored code for GridField classes - views now reuse code from field-layout in the DOM.