Switched to 'foldr'-like 'toList' implementation