Added method to Object and added relevant test, updated docs for Number. Should fix failing Travis-CI builds.