An easy way to give a bad reference is simply to decline to give one at all. I think you'll find that there are unofficial methods of communicating that are effective - I'm also not certain that it is correct that a 'bad' reference cannot be given
What I'm trying to say is that you should assume that the nature of your dismissal will be communicated, one way or another.