- JavascriptObjectRepository generates object ids using a static counter, we need to get the object Id for this
test to be reliable, using an Object Id of 1 will fail if the test order isn't in a very specific order
* fix IsComplexType NullReferenceException
Sometimes, the registered Javascript object does not have a namespace, at this time this function will throw a ```NullReferenceException```.
* add unit test for IsComplexType
* Simplify and remove useless code
* Update CefSharp/Internals/JavascriptObjectRepository.cs
Co-authored-by: campersau <buchholz.bastian@googlemail.com>
Co-authored-by: Alex Maitland <amaitland@users.noreply.github.com>
Co-authored-by: campersau <buchholz.bastian@googlemail.com>