Add -stdout flag and sort types to reduce diffs.

The main change is sorting symbols before outputting. This results in much smaller (or no) diffs when repeatedly running pkgreflect.