add toggle array function

Toggle item in array function was really useful for me many times. 

Toggle item in array. If array contains many such items, they will
be removed entirely. If you pass optional isSingle then only first one of them
will be removed.

One of the usecases:
http://codepen.io/sol0mka/pen/kedaw
Submit button will be enabled only if form has any changes