add SGMatrixList more memory unittests and fix SG_MALLOC(SGMatrix...) issue