Add test for #11677

This code used to cause an ICE

Closes #11677
Clarify range's exclusivity.

Inspired by http://www.reddit.com/r/rust/comments/298js2/what_is_the_rationale_behind_the_second_parameter/