Joint Problems in Learning Multiple Dynamical Systems