Add missing return type to dump function.