BUG: Fix infinite recursion in str.format of flex arrays (Fixes #4359).

The default implemention of __format__ in gentype_format() was changed to use string conversion on the object if no better method was found.