Added an is_base_of_all check.

Plus some minor improvements here and there.