\starttext

Table \ref[number][tab:reference] is a nice table. But referencing does not work \in[tab:reference].

\placetable[][tab:reference]
        {The table should be set up better.}
        {
        \startluacode
        context.bTABLE()
          context.bTR()
            context.bTD() context("n") context.eTD()
            for j=1,10 do
              context.bTD() context("$10^{" .. j .. "}$") context.eTD()
            end
          context.eTR()
          t = { 1, 2, 4, 8 }
          for index, i in ipairs(t) do
            context.bTR()
            context.bTD() context("$n^{" .. -i .. "}$") context.eTD()
            for j=1,10 do
              context.bTD() context("\%.4f", 10^(-j/i)) context.eTD()
            end
            context.eTR()
          end
        context.eTABLE()
        \stopluacode
        }
\stoptext
