Fix return type incompatibility.

Old version throws: `type 'String' is not a subtype of type 'StringBuffer' of 'function result'` in checked mode if there only one element in `es`.