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.
Co-authored-by: Adrian <adrian.iosdev@gmail.com>