New implementation for resolving object types.