More robust ways to get pseudoconstant labels and names CRM-12464

Split getValue into 2 more usable functions: getLabel and getName