fix globalbucket names. value definitions starting to work...
more fixes to bytecode generation