Added the ability to add elements to exist/not exist array by 'field.$', and small performance changes.