Two goals by Kenny Miller and one by substitute Joe Dodoo help Rangers cut the gap on second-place Aberdeen to nine points.