Added support for descriptors that are single-valued strings or numbers, and add absolute difference in general (improve #4).