Implemented type query scope and storage of entire class hierarchy in item objects.