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