Fixed other cleanup issues with bigreactor_optimizer.lua