Type-methods, more sorting, bugfix in StrPosEx!

StrPosEx had an ugly bug resulting in it skipping 1 char every time it
found a result.