Add core.typed checks to pallet.core.api