fix to_h to include class name and safe_hash to not
avoid infinite recursion
don't just return self from to_hash
Merge pull request #4 from ericcj/class_name_in_to_json

fix to_h to include class name and safe_hash to not