Mark function node as dirty after custom node is udpated

Ast compilation will check isDirty property to determinate is a node needs to be compiled or not.