better generated tfun_constantitems initialization
improved emission of blocks
adding output emission, but incomplete