Fix: input_spec and output_spec were not set

Fixed bug in surface-to-surface distance computation.