Make type name comparison case-insensitive
Update nupkg patching logic