added ability to define FORMAT_TYPES functions as string in settings
fix. settings.hasattr => hasattr(settings, ...)