Make updateArray function accessible to allow applications to update arrays without raising unnecessary add and remove events.