Fix for random which resulted in `r`.RAND() instead of RAND()

<contenttype>/random stopped working because "`r`." was prepended to it, now only prepend it to fields. Quote "r" with doctrine now, for better working with different DB systems (all are changed in #404 btw).