Add and refactor tests for JSO data types

Added tests for `ModelComponentParametersJSO` and `ModelComponentConnectionsJSO`. Refactored tests that use `JsArray` types to use static members for data and the `JavaScriptObject#cast` method.