More ManiaScript performance improvements