Fixes the max ID for a channel end to be 62 instead of 63. This is because the last bit of the badge is used to distinguish on whether we have received an PPC or a notification. Having the max ID as 63 will mean this bit is overwritten and so notifying a channel with an ID of 63 will instead be delivered as a PPC.
Applies the same fix to IRQs and adds tests like for channel IDs.
Makes a note of the valid channel/IRQ IDs in the manual.
This PR does two things.