BF: Adjust the dimensionality of the peak_values, if provided.