Update Motion.hx, closes #632

Errors with recent build. Needed to have set/get fields set in the typedef.