add typesystem warning for empty structs

fix #1025