allow ranges to be specified as sequences

This is for #591 

Can do:
```
figure(x_range=[10, 20])
```
But still does not allow 
```
curplot().x_range = [10, 20]
```
delete space after `if len(range_input)`