<rootname>_type -> <rootname>_config in libstruct

When inferring struct name from filename, libstruct uses now the
_config extension
cppcheck: minor warnings removed
Avoiding reference to reference