[PATCH] String and thread inherit fixes