getBracketMap (now also takes x-tok [token lists containing sublists])