Fixes for InputChain

more bugfixes for checkActive()'s chain matching (and new test data)