Add GetMaybeOptimizedOutValueType