Fixes to indexing and searching containers and reference containers. Also included indexName in serializer so that it actually works. Some other small fixes as well