backend_pgf: use the bounding box as clip rectangle (fixes #2586)
Better PGF backend detection in tight_bbox.