added masked array support to addcyclic function (thanks to Jesper Larsen)
Authored by: jswhit 2008-11-07
Parent: [r6368]
Child: [r6370]