Added -r option for change referenced types' namespaces.