Improved validation of input based on different types.

Resolves issue:
https://github.com/krakenjs/swaggerize-express/pull/18

Also accounts for express issue:
https://github.com/expressjs/body-parser/issues/44