Get the HDU type: either Image or Bintable or Any if unknown.
Image
Bintable
Any
The returned category can be equality-tested, i.e. category.type() == HduCategory::Image is safe.
category.type() == HduCategory::Image