Move matrix typedefs to item class.
Use array of shape matrices.