Fix a bug in `tiledyn`.

It wasn't restacking after calling `tile()`. Also, `tile()` was being
called twice in some instances.