fix extra_targ test
function to test whether a bit is set
fix test of extratarg after Jon's input
fix telescope test
add index functions to find the right index into the param/fparam/elem/felem arrays
some info on new bitmask functions