fixes issue with inverse_of usage

cannot be used without the opposite relationship
adds unit_type cost