Added unit tests for ReadOnlyListAnchor and ReadOnlyListAnchorStructure.
Fixed bugs in ReadOnlyListAnchor and ReadOnlyListAnchorStructure.