Fix invalid LLVM generated by slices of signals with non-constant bounds