Big batch of small fixes.

-- Ongoing work on language learning
-- assorted bug fixes
-- Cleanup yet another big mess of opencog atom types.