idgames_db_dump: close #44; show script stats at exit

- Also has changes for issue #69, error 'type' and shorten Error
  attribute names
Error: close #69; Error includes 'type' and short attrib names

- Also made corresponding changes to DBFile and XMLParser