Added NODE_FUNC_DECLARATOR for support shared variables, added initial version of colecting shared variables