Ability to use anonymous beans and template placeholder resolution

Hi Markus,
I've used your library but it was not working properly for my scenario:

- I'm using rabbitmq spring extension which uses anonymous beans inside listener-container:
    <rabbit:listener-container
            connection-factory="${record-type}-push-connectionFactory">
        <rabbit:listener ref="${dispatcher-listener}" queues="${record-type}-push-queue" />
    </rabbit:listener-container>
I've changed the statement checking template resolution in beanName
- If I used placeholder inside template, this placeholder was not resolved, I've fixed it too.

Please integrate these changes.

Regards,
  Tomas