Indexed Linear Logic and Higher-Order Model Checking