STS-3547: added shortcut for resolving already resolved types to improve performance