Foxx: more consistent bodyParam (fixes #935)

This implements the changes in #935.