glthread: handle complex pointer parameters and support GL functions with strings