Create multi-select attributes automatically

This pull requests adds the functionality to create multi-select attributes automatically like the functionality of "setDropdownAttributes".