Improve debug and string representation of objects