Implement hit-testing tolerance for fill tests.

Closes #278.