increase Text.type length limit to 14 chars
fix EntityRepository::getRandom