Fix the avg return type extension using the following rules for its return value:
null if the input is only null.
numeric-string if non-null inputs are only integers.
float if any non-null input is a string.
Put min/max in their own return type extension, since their behavior is sufficiently different from avg. They return the input type, but if any input is a string, then the return value is stringified.
Fix the avg return type extension using the following rules for its return value:
null
if the input is only null.numeric-string
if non-null inputs are only integers.float
if any non-null input is a string.Put min/max in their own return type extension, since their behavior is sufficiently different from avg. They return the input type, but if any input is a string, then the return value is stringified.
Closes #578.