Typecheck on add_object and add_relation for Objects.