BUG_FIX: Model.store_current_values stores inactive components values


This PR fixes the bug and adds a test.