Fix typespec_to_ast for lists