Stupid me, since the introduction of single queries I completely forgot that with a normal query, even if only one result, you still need to use a repeat to access the values in the query.
doing this solved it.
Guess it is so long since i have user a multiple query for a single result i forgot the basics where an array reference or repeat is needed in all cases for a multiple record query
think i am working too hard, need another holiday!
It properly returns the expression for the regular multi records query, but i am not sure how should it handle the custom query results. @George will check this.