fix: Recursion under StructRef

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Add failure test

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>