Rangers finished their League One campaign unbeaten but they lost their perfect away record after being held to a 1-1 draw at Dunfermline.