tidy up error handling of curry
fix bug  in throwError due to occusion of template function
more very draft musings