Make  work
New Signal methods: set_signal_type, set_signal_origin, as_image, as_spectrum. The old to_spectrum and to_image functionality is retained in the correcponding Image and Spectrum subclass methods.