If a const is expected, resolve a const. If a type is expected, resolve a type. Don't try to resolve a type first falling back to consts.