Raise error for uninitialized variables

Raise an error for uninitialized variables if they are source variables in a connection, are part of an active `SimpleSystem`, flattenable and add the size of the global array.