Fix typeof check for #188
Fix jumping while moving up a slope in platformer example.