Make a helper class for __str__ method

Add a helper class to `jubatus/common` module. This class is used in `__str__` method.