only display range constraints when it makes sense. Refs #797