backend_pgf: clip paths within the backend (fixes #1857)

Because LaTeX doesn't handle very large numbers (#1857), this PR moves some of the clipping operations from the pgf-code into backend_pgf.