updated Object.in? and added 'deprecated' warning