Rangers eased to a seven-point advantage at the top of the Scottish Premiership with a dominant 3-0 win over in-form Dundee.