Fix extra brace and also process types in custom attributes