LibStruct added Struct.realloc method, switched MatrixStack to use it to grow internal stack.