Made unescapeTermString() ctfe friendly
Removed unneeded casts
Working towards ctfe