Added destructors for DsonArray and DsonObject.

This fixes some memory leaks upon encountering incorrect input.