Added Visitor::visitExtensionType() and implemented method on all visitors.