It's a bug in your macro. You're missing a bunch of datum->syntax calls for all the identifiers that you're generating. The bug in the expander is that it's not signaling an error in these cases.
It's a bug in your macro. You're missing a bunch of datum->syntax calls for all the identifiers that you're generating. The bug in the expander is that it's not signaling an error in these cases.