Added support for passing arrays to State.add/remove