Fix bug where arrays weren't working correctly.
Alter structure to work without include as per http://stackoverflow.com/questions/2328984/rails-extending-activerecordbase