Added exception handling when dumping a non-standard AHK object
such as COM, Func, RegExMatch, File object. Minor changes in some
parts.