Revise type checking for array or object write op arguments

executeSingleOperation() must allow objects, since insert ops may be either objects or arrays. Update and delete ops will always use arrays. addOperation() should no longer expected an object at all times.