Update has_scope and IR for ruby 2.0 support