Add a virtual destructor to ObjectOrArrayAction. Closes #493.