prerotate, firstaction, lastaction should take arrays too

to match postrotate (#27)