Reworked to_obj() to collect namespace information. Took unit test base classes and functions from cybox and modified, though it was probably unnecessary