smurf: Fix bugs in diagnostics code
kaplibs: Add support for _WORD to kpg1_hsect
smurf: Add diagnostics facilities to skyloop