Fix segfault in LinearizedTree constructor