vecExt() no longer working with Modern?

@Andrew_Stacey i have been happily using your VecExt class for many years!

Unfortunately with the new Modern version of Codea, there seems to be an interference that means it no longer complies. The error is related to the line

                m = getmetatable(matrix())

Unfortunately i am not familiar enough with your advanced lua techniques to figure out a fix. Hoping you might take a look-many thanks in advance.

@Sim the metatable matrix has disappeared in Modern, what is the equivalent in Modern? I tried mat3 and mat4 but that doesn’t fix it.