ComplexKey.toString() with test

ComplexKey.toString() with test. Fixed #164.