Bugfix: sometimes a tiny gap was left between infill and perimeters. Includes regression test. #1803