polylib: update for Matrix_Extend