Just thought I'd jump in here with a contractor's point of view: The AHJ will not allow the closet to be counted into the required square footage requirement for the minimum habitable room size so how can it be considered part of the bedroom? They can't have it both ways! The 2000 IRC give closets a definition as "a small room or chamber used for storage". Doesn't sound like part of a bedroom to me.

Harold