support setting the type of a jail

patch from @jdauphant b241173e857a54f604c6ba9490e44701d5161ffb