Replacing deprecated sympy syntax in the `independent` state updater
New helper function `is_scalar` to determine whether an expression is scalar, functions define whether they return/require scalar values or not