The new tag allocator doesn't seem to be zero'ing things.

Clear flags before we use it.
Be defensive - clear direction flags before we set one.