[sr-dev] git:sr_3.0: core: fix selects in optimized rvalue expressions