Patch PGML matrix answer arrays

This fixes a problem with PGML's handling of `ans_array` for Matrices and other compound MathObjects.  It also fixes several warning messages about variable names that were appearing in the log file.

Note that this also should be merged with `develop`, either now or by merging `release/2.8.1` into `develop` at the time it is officially released.