Correct data conversions

Fixes described in https://github.com/dzerrenner/easy-select2-m2m/issues/1