Allow missing display index => main display; fix resolution spec. parsing