avoid_multiple_db_calls_for_links

pluck causes a db call to be made even if the associated resource has already been loaded using an activerecord includes. 
This patch changes that, but makes it less efficient if the resource hasn't already been loaded.
In most cases I would have thought that includes should have been used, so I think this might be better.