Add check in Gridlines constructor for QuantitativeScale inheritance.

Add check in Gridlines constructor for QuantitativeScale inheritance.

Close #539.
Good point, need to check on IE9.