make add_object_array_with_context interface more sane