Fix bugs related to bottom kwarg in step histograms

Another go at #2297, this time targeted at the correct branch.