Bug fixes, heuristic tests, update to latest mupdf & gm toolset