improve / document type format checks

  according to expected failed -Werror support in autoconf for non-gnu
  compilers, the format check was rewritten.
  Due touching it anyway, some tidying, documenting and polishing
  was done.