[SPARK-3892][SQL] Map type should have typeName

To be honest, this method is there totally because I forgot to remove it... Otherwise at least `object ArrayType` and `object StructType` should have their own versions of `typeName`.