[aotindutor] Refactor optional value codegen (#110233)
Summary: Simplify the codegen for optional values by using c10::nullopt, and we don't need placeholders like OptionalScalar because we can simply use None for that purpose.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/110233
Approved by: https://github.com/jansel