Periodic versus scale-free patterns in dryland vegetation