glformats: add functions to detect signed/unsigned integer types