bin/cscan: better handling of C::Scan returned object type