next_power_of_two overflow has unspecified behavior and Vec panics on checked_next_power_of_two overflow