ClassNode::appendMethod() can now accept a FunctionDeclarationNode

Implemented #97.