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]
```