Fix a variety of small publicly-reported bugs.