Add type hints to calls that were warning about reflection

results in a nice performance boost.