config: improve pool section writing.

Order so JSON's not broken, write `priority` and `algorithm`.

Closes #102.