Try to give a better hint to the compiler that the array-deletion form of unique_ptr should be chosen.