fixed a bug in which 3(...) e.g. would be treated as *(...), and added t...

...est-cases for the reps