refs #15246 cache ActiveX constructor.

Cache the document parser type to improver performance. If the cached parser fails resume search for a compatible parser.

[refs 15246](https://bugs.dojotoolkit.org/ticket/15246)