...........With the tank near empty (safety precaution), you should be able to bend it back into shape by careful application of a heat gun...........
I would be extremely cautious about the use of heat where that came from the use of any unguarded flame or from any other incandescent heat source or electrically heated devices.
Although diesel oil does not normally catch fire as easily as other more aromatic fuels, it is possible, even if somewhat unlikely, for it to contain traces of those other fuels which could trigger a fire when in the presence of a source of ignition. This will depend on how strictly you or anyone else using your boat have been about ensuring that the fuel in your tank has not become contaminated either by you or your suppliers. An example of such contamination might be the use at some time in the past of an apparently empty petrol can that has been brought in to use to carry a quantity of diesel fuel to your boat where that can has been used because you don't have a diesel specific fuel can for such purposes. Just the vapour within a petrol can may be sufficient to affect the flammability of any diesel oil carried.
On a separate point, if your actions did result in a fire on your boat, firstly you would have a slightly complicated route to follow to get away from the fire such that it could be a danger to you, secondly if you were in a marina with other boats nearby, any fire on your boat could spread to those neighbouring boats, and thirdly where would responsibility lay if other boats, marina facilities or other people got burnt, and I would not rely upon having an insurance policy to cover for such incident.
If your boat is located within a marina at the time you propose to carry out such repair, it could be worthwhile discussing the problem and intended repair procedures with your marina manager.
An alternative to using a heat gun might be to build a moat around the filler pipe, and having first emptied the tank, then fill the moat with boiling water while using some kind of tool to gently stretch the neck of the filler pipe back into shape. Obviously you would need to take precautions to prevent water from entering the tank, or take appropriate action to remove any that did get inside. Lastly to retain the shape of the filler pipe you might be able to get a "pipe insert" from your local builders merchant which could be put in place before refitting the filler hose. Good luck.