Added support to kernel to serialize methods in getNode

This commit fixes #1659
However, we do not yet have a setMethod property to allow a person to actually change a method which would make one want to serialize it.  ;o)