Fixing array to string conversion

In the doctrine tests a notice was thrown that there was an array to string conversion in the isValidType method.  In some cases an array was passed in and the type it was expecting was an integer or decimal (happened in the Doctrine_Extension tests).