Provide more context when a bounds check fails.