Minor cleanup + More tests for forward/logprob

Should now work for degenerate input
Tests that logprob works for HMM arrays