Detail dialog UI adjustments
Rename JoystickDebugDialog -> GamepadDebugDialog
Fix segfault on exit

The segfault was caused by reusing the same header items for multiple
table widgets. When the tables deconstruct themselves, they delete their
headers, resulting in a double free for the second table.