Changed all operations so supertype has a generic parameter
DAWNSCI-5695 fix wrong context for preference
add method to cope with superclass determination problem
fix usage of error and errorBuffer

 * use errorBuffer where variance is expected