Linked state tree asset crashes if global task parameter is bound to a ST parameter of not type AiController.

Steps to Reproduce

  1. Create a root state tree asset.
  2. Create a linked state tree asset.
  3. Create a float parameter on the linked state tree.
  4. Create a global task to use on the linked state tree.
  5. Add an input parameter on the global task with float type.
  6. In the linked state tree, bind the global task input parameter to the linked state tree float parameter.
  7. Create a new state in the root state tree and link it to the linked state tree asset.
  8. When the app is run, it will crash on entry to the linked state tree (assertion failure).
  9. Change the linked global task to use a parameter of type AiController instead of float.
  10. Bind the parameter to the AiController from the state tree context.
  11. The app can now be run without crashing.