Make partial standardizer work properly

The partial standardizer now matches the output of the reference
implementation for every test case. I can only assume the full
standardizer works too; I don't have reference results for it.