scan.cc: array_depth: take QualType as argument