tree->type is now a bitset