Reintroduces the category support for loadAll

Furthermore the object type id is further validated.

That support to load just a certain category went missing during the restructuring of the loadAll method.