some formatting
Added toHexString
Added digest methods to file util (closes #180)
Fix the lookup order of custom and default type serializers.
Added test