load custom format error in custom format attribute file
Test type conformity in format base class
Improve error message for custom formats
Refactor custom format registration