NULL is not an int, but 0 is

This shuts up some "-Wpointer-arith" compiler warnings:

    warning: NULL used in arithmetic
comp: clean up generated C code

If the .comp has no extra_setup() function that might modify
inst->_personality, don't bother resetting the 'personality' local
variable.
docs: fix a typo in the halcmd manpage