trac 11772, both patches
trac 15090, for proper webwork support for random matrices in problems