Changed class constant and fixed possible typo

The class constant `TYPE_TEXT` does not exist in Magento Professional 1.10, but `TYPE_VARCHAR` does. It also exists in Magento CE 1.7.0.2 and CE 1.8.0.0 despite being marked as deprecated, so I'm thinking it can be used safely.
Also there seems to be a typo: lenght instead of length.