Refactor and extract an ApzcPinch function. r=
Add tests to ensure the effective transform of layers is always correct. r=
Make the test test more stuff