Use correct conditional because 2.0 mode behaves like 1.9
Update socket for 2.0 mode and update tags
Add specs for accessors on immediates
Fix using an accessor on immediates

Also cleans up unused code because it was inlined into Object.

Fixes #2276