Upgrade to joi 4.x

Closes #1639 
Closes #1640