Create distinct pre- and post-clip caches

Helps with modern clip gradients.
Fix bugs in create_clip_shape()