Assert if key is too long when uploading to icloud
Add haspurchases to purchase restore callback