Optimizer fixes for BRAM FIFOs.