Added support for types when binding params

Please review and test with your projects, I can confirm that these type checks work but not sure what I means for preexisting assumptions on binding behavior.