Fix for ontologyindexer and indexedontologytermRepository

- fixed the total number of retrieved by RestAPI for indexed ontologyterms
- added runtimeproperty for custom synonym fields in ontologies