More work on exportClass to deal with multiple matching class names.