Allow contenttypes with ID zero

All contenttypes.ContentTypesTests pass under sqlite.