Added possible fix for max/min Length when text is interpreted as numeric values

This is in relation to #457 and is not the best, as there are a few quirks due to the array handling within min/max length. So you cannot just prefix with `""+someVar` as if its an array it wont work.