SQL functions now use ssize_t so that they can indicate actual error conditions

A module expanding to a 0 length string is no longer considered and error condition

If a module xlat returns < 0 update sections will return fail