Make listify work on nested lists of depth > 1