Allow Pyro to exclude empty patch transforms

Same basic code as for the wix3 repo but with all the refactoring necessary in the new model.