Make SELECT always return a column header, if there are no rows to be
returned.

Add type to the column row.

Fix a 64bit compiler warning.