Migrated MotionGraphs to unified api

- Cast nfloat to float
- Cast nint to int in order for cast to enum to work
- Cast nint to int used ad array index
- Changed new float[] to new nfloat[] used in constructor