fixed globalEval bug
support delegate by name
add delegate by name tests