nak: Optimize nested OpPrmt
This is an alternative to !26633 (closed). I got a bug in my brain about it while looking at a bunch of shaders with silly prmt
in them. I started off trying to tweak Mary's and then it ended up being a pretty significant rewrite once I added all the helpers and things.