Merge pull request #72 from asudoh/worka

Several fixes in StatefulArray