Expand hostlist range count

Increase maximum number of hostlist ranges from 12k to 64k and
use malloc to allocate memory rather than using the stack
bug 458