-Fix [FS#5995]: Consider multiheaded trains in station refits (and clean up a bit)

git-svn-id: http://svn.openttd.org/trunk@26586 6aa0318a-3be1-0310-93fa-89fd2396df07