dumpTree takes an untyped value as it's first argument and then converts it into a NimNode before calling echo treeRepr on it
Your untyped data has already been converted into a NimNode by passing it into a macro so you need to skip the conversion step. It's the same reason calling macros while already inside a macro is tricky.
