XWIKI-9067: Improve the way list property values are indexed by Lucene
* Small refactoring.