By-ref lookups require connection for context now

This is to prevent users from using refs like UIDs in commands (i.e.,
/WHOIS, /KICK, etc.)