fix broken tests around primitive JS array printing