Assorted overlay fixes
- Fix an infinite loop due to lack of parameter validation
- Avoid things breaking if overlay calls are made from IRQ handlers, by simply refusing to handle the calls
- Make overlay updates more robust against SWI errors or the GPU being busy
- Improved debug output