static boolean testScalar( Object val) {
  boolean bres = false;
  if (val != null
    && (val instanceof Byte
      || val instanceof Short
      || val instanceof Integer
      || val instanceof Long
      || val instanceof Float
      || val instanceof Double
      || val instanceof Character
      || val instanceof String))
  {
    bres = true;
  }
  return bres;
}