Refactored Repository.Checkout to use CheckoutOptions