move format character definitions to types_api.h
check correct flag parameters
use GT_LD and GT_LU instead of %lu and %ld
long -> GtWord