rolling_window on masked cubes

Rolling window didn't seem to deal with masked cubes so I added a check. I haven't compared with any cml in the unit test because I didn't know how.