JavascriptObjectRepository - Throw exception if trying to Register .Net built in type
JavascriptObjectRepository - Throw exception if trying to Register .Net built in type

Also Simplify some code as per VS suggestion

Resolves #2466

Livit/CefSharp,Livit/CefSharp,Livit/CefSharp,Livit/CefSharp