trunk: various minor bug-fixes.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@4675 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8