Add improved iterator and __str__ support to registers class.