[class] better macroexpand output, improve error