Fix typo and typeof issues.
Merge branch 'master' of github.com:Mindspace/jasmine-as-promised