Changed how get_CPTindex() works.

dict2list_vals() is now unnecessary for most applications.