Fixes #2405 Array to string conversion problem