Added write readback unit tests for list, tuple, set, frozenset, and collection.deque.
Consolidated the assertion functions for python and numpy types together.