Distinguish unused functions and just too public functions.

Caveat: functions recursively calling themselves by name are not
detected as unused at the moment.