Rangers moved three points clear at the top of the Scottish Championship after a comfortable 4-0 win over Dumbarton.