make castclass eliding optional, tweak OptimizationOptions