Some fixes to getting single reference option. Fixed some problems with indexing and searching reference values. Continued DDI-export. Still missing fields pertaining to personell or collectors.