Use full deprecation version

Almost everywhere in the code we use the full version number in deprecation notices. There are a couple of exceptions though. This brings those exceptions in line with the rest of the codebase.