On types of KKT points in polynomial optimization