After I posted the comment I noticed it was reverted. I compiled 82b7ee62fc4bbe014f61a60bccf694b706c7247d and the artifacts are still present. There might be two different changes that cause a similar bug? I'll try to narrow it down.