Implement support for nested lists