Fix auto type / prefix-length for from-prefix

The implementation of auto-type and auto-prefix-length for from-pool
operations accidentally broke from-prefix. This is now fixed and auto
type and prefix-length now works for from-prefix.

Fixes #319.