Fix destructor call for hash and array members