Query Vars Not Set in Main Query

Query vars are… fun like that. Depending on which archive you are messing with get_post_type() just might be simple enough to do it (it gets type from actual post, not query).

Otherwise you might want to go for get_queried_object() to figure out what precisely you are dealing with.