[select2] Add support for JSON IDs

Merges https://github.com/ivaynberg/wicket-select2/pull/87