Foxx: use joi in queryParam and pathParam (fixes #936)

This implements the changes in #936.