class_name method in libstruct

Closes #82