Type investigation code refactoring.

Remove functions used to guess a C type based on some infos.
Add new functions to scan 'return-value' and 'parameter' elements and
find the C type contained in each element.