fix problems
create ScalarRealNA
Have ScalarRealShared do int64 comparisons, work for NA
define integer constants