Added options to specify a multidimensional PiecewiseConstantFunction and different Noises for each dimension of a DecodedOrigin
Changed error handling in threads so that the system doesn't just silently crash when an exception is thrown.