Fixed implementation of finding explicit clock and reset for each module

Just use a 4-way match on all the possibilities to set the explicit clock and reset for each module simultaneously. Still fails to pass all tests though.