Fix get_object() and add debugging

in get_object, if the requested node is blank, or is literally . (the root object) then do not try to find the array index or key, since these will not exist, or in the case of the array inside, will return the first element instead of the array itself

Add additional debugging including returning the type as a string
More fixes for the case of a leading . in dot notation mode

More memory mangement fixes
More error checking