Issue 1340: support modelbinding nonstring data from route data

Initial fix for this issue is done with commit a14733ff074 which has a
breaking change. Commit 6b64e226a has the non-breaking change but it
didn't revert the breaking change done in commit a14733ff074. This change
just reverts the inital fix (a14733ff074).