Factory for simple namespace classes, similar to namedtuple, but without the sequence behavior.