Fix of late static binding when function contains another function or lambda declaration

git-tfs-id: [http://falcon:8080/tfs/Projects]$/Phalanger/Main;C5992