Fix gen_call_with_extracted_types for literals (#27622)
Prior to this patch, executing (say) `@less 1` in REPL prints a
cryptic message `ERROR: LoadError: type Int64 has no field head`
although there is a branch in `gen_call_with_extracted_types` which is
supposed to handle this case.