remove reliance on __toString()

relates to https://github.com/sonata-project/SonataBlockBundle/pull/91