This issue was solved with changeset r42348.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
struct.c: rb_struct_define_under
struct.c (rb_struct_define_under): new function to define Struct
under the given namespace, not under Struct. [Feature #8264]