update (with several reducedim functions migrated to Julia base)