It's possible to have a dollar character in an identifier with Clang. We use that in LLDB to
namespace our own variables, but apparently this trick breaks our variable filter we use to
only load used variables. This patch adds dollar to the list of allowed characters we can have
in a variable. Also moves this check to its own function to make things more readable and
to fix the compiler warning that we implicitly convert char to unsigned char.