Add geneirc type to the Binder class

Avoid cast on custom binder.
Minor API changes.