c/files: Inline dir_counts and skip some object stringification

Signed-off-by: Niels Thykier <niels@thykier.net>