Set tmpRoot on tree if tmpRoot provided to builder

I know this needs tests, but I wanted to start the discussion. This is for #202.