Created a helper method to clone a function as a method of an existing class.
Merge pull request #126 from grom358/clone_helpers

FunctionDeclarationNode::cloneAsMethodOf()