Use CustomVarObject instead of DynamicObject for all libicinga objects.

Fixes #6187