Removed unsafe eval() from compressed treeselectmenu script

referring to issue #3837