Peak finding

Work on finding peaks in 1D curves to support automatic calibration.
The return values from

```
def foo():
    return 1, 1
```
and

```
def bar():
    return (1, 1)
```

are identical