Fix parsing of nested shifts and update BRAM size.