FIXED: Flattened arrays do not return correct dims in mesolver and sesolver