unittest: add type to the testing problem dirs

- this is part of the ongoing process to get rid of the analyzer element
- libreport is about to get a patch which makes it refuse a problem dir
  without type element

Signed-off-by: Jakub Filak <jfilak@redhat.com>
fix ccpp hook to create the type element - closes #682

Signed-off-by: Jiri Moskovcak <jmoskovc@redhat.com>
Signed-off-by: Jakub Filak <jfilak@redhat.com>