Now extends schema.statics so models can flatten

Figured out where the extension should go. The plugin adds the .flatten function to the schema which will later return an array for building histograms. Set up the basic structure for the test for this as well.