Upgrade GLPK to 4.52.

In addition, make tests separately for easier inspection.

This supersedes https://github.com/Homebrew/homebrew-science/pull/308.