Fix some warnings on gallery page
Force creation of short URLs on exporting to array