Multi-autocomplete onchange handler

This pull request fixes some issues of the multiautocomplete, and especially calls to the `onchange` handler (it supersedes #987).