Implement type checking in SolrAdapter:references, modify stubdata to reflect score comparison