Inductive datatypes in toposes