I added a better test (and added one for the Number-catching code added to flatten). If tests pass, could you commit this?