throw bounds error for invalid idx into GitIndex