M. Ansel,
For 32-bit ARGB, using your quantizer produces a palette, whose entries contain Alphas (4 ARGB bytes per panel entry).
The problem is that PNG 8-bit indexed images do not support Alpha in the palette. They only support specifying Transparent Color. Even Photoshop can't handle Alpha layer in 8-bit indexed PNG.
Is there a way to pass your code a 32-bit ARGB PNG, and for you to return an RGB-only palette, together with a transparent color?
TIA,
Lavie