[WIP][DDC-1995 ] Support metadata class as parameter for instance of expression

Hi guys,

This is a possible solution for [DDC-1995](http://www.doctrine-project.org/jira/browse/DDC-1995),

I've attempted some diferent ways to fix this problem without success.
Anyway, RSM still looks like the wrong place to parameters mapping.