minor fix to string representation of resources (show class name or class_name, not both)