Various language picker fixes

This closes most of bug #3181. Also updates select2 to 3.4.5 for its diacritics support (compat fixes were needed).