Fixed GridModel implementation; implemented working consistency check. Still need to figure out arrays.