add type defs for column value and definition pairs
in index substitute defpair and valpair types for brevity
fix refs to valpair type in bayes lib
override constructor for entity
cleanup some errors