Cache the ActiveX XML parser type in dojo/request/handler; fixes #15246

Cache the document parser type to improver performance. If the cached
parser fails resume search for a compatible parser.
Fix #16296 console.debug(NaN) produces error in IE9

Properly convert arguments to an Array when shimming a console function.