pass a few more ctx.createPattern sanity checks