Ensure constant lookup works in Ruby > 1.8.