Fix failure in OracleAggregateFunctionTest.testNearest [GEOT-4730]

This is an alternate solution for #393. This one fixes the type returned by the implementation to match the type of the targetValue.