Fixed memory leak with StatefulArray creation, etc.
Update in-line documentation of StatefulArray, refs #16632.
Merge pull request #72 from asudoh/worka

Several fixes in StatefulArray