Fix: getScalars function mismatch in CoordinateEncoder