fix problems with localparam and +; -: ranges