Add check in Gridlines constructor for QuantitativeScale inheritance.

Close #539.
Fix inheritance check for IE.
Make undefined acceptable paramater.
Merge pull request #1137 from palantir/539_gridlines_scale

Add check in Gridlines constructor for QuantitativeScale inheritance.