Don't crash when printing name of nil interface
Improve debug messages
Ensure we only attempt to handle TypeA queries