[ruby-core:124138] [Ruby Bug#21669] Thoroughly implement void value expression check