Made any parameter explicit and added tests

The knockout.mapping library typings file had a problem where the parameters for the `visitModel` function did not have a type at all. This caused compilation with the implicit any parameter to fail. This PR fixes this and also adds unit tests in the process.