Implement recursive array/list parsing