Make initial/max threads introspectable.

As requested by segomos++.
Ensure thread counts are Ints.