allow all bits values as type parameters. closes #6081

This backports b429303dd6824299801fcd6ded7a23c12794d72a. Any reason not to do this?