Fixed optimization ordering bug that was causing type inference failure through reductions.
Fixed optimization ordering bug that was causing type inference failure through reductions.

PLATFORM-973

precog/platform,precog/platform,precog/platform,precog/platform