Generate informational string representations of any value, inspired by Python's reprlib library.