Added det and inv (defined by roundtripping to/from Array).