Add test cases for __repr__ and __str__ for ndarray subclasses
Correct name in __repr__ and make a clearer if statement
Correct name assignment in __repr__; add test case for ndarray base