enable IsNullPredicate on all data types
add distance scalar function