Fix for ext-wernis, some rewrites, fixes for array-to-string convertion