I deployed the script as a more or less blank map ...
# suitescript
s
I deployed the script as a more or less blank map reduce. and then redeployed the actual code and it seems to work.