mods to allow CPP to CPP comparison
fixes for R to CPP comparison