Fixed incorrect type guessing from assignments in auto-complete.