Fix type detection in StateEntry.