Implements a parse() method to parse TypeInformation in string representation.