[base] Improve the matrix degeneracy check.
Also fixes #1251 (closed).
- src/base/ftcalc.c (FT_Matrix_Check): To avoid overflow, scale by shifting.
- include/freetype/internal/ftcalc.h (FT_Matrix_Check): New heuristic constant.
Also fixes #1251 (closed).