Added macros to simplify implementation of Node trait methods.