Bleeding profile image

CHANGELOG
* added support for "array" input type in datamapper
* added trim() to mysql_doctrine.php::query()