Have you generated the AOTClasses.cs from within the *Preferred Types Editor* window?
If not, please do so and let me know if you still get any error of any kind.
One important thing to remember (when dealing with AOT platforms like WebGL), is to add any struct types (like float, double, int etc) you are using in flowscripts, in the Preferred Types Editor list if not already there, and do the “Generate AOTClasses…” button afterwards. (You can of course always add more types in the list and regenerate the AOTClasses at any time)