[IR] Tweak DefsNode and DefnNode IR building for Ruby 2.1 semantics