Added type hints to get rid of reflection warnings during 'lein check'.

Fixed multiple warnings of type ``call to <smth> can't be resolved``. Perhaps it will increase the performance as well. 

Please ignore this PR if it was an intentional duck typing.