Fixes to a number of numerical edge cases

Hardens the A and Q sdp's to handle degenerate edge cases (when one of the metastable states has no associated observations).