minor fix to normalize-by-median, cleanup of saturate

A few minor issues; note that saturate-by-median is in sandbox and so doesn't need to be reviewed particularly.