Translate python errors to exceptions during fit func calls.

Avoiding the boost python wrappers means we have to handle this too.
Refs #970
Fix ExamplePeakFunction & test. Refs #970
Add Example1DFunction. Refs #970