add a class_name method

Copying the `class_name` method from flo-llvm into libflo.