Fixed some bugs with compiled inference. It now appears to be functioning correctly.