assorted bug fixes on sureal

fixe for bug reported on https://github.com/opencog/opencog/pull/1035#issuecomment-57761879 and other that came up on fixing the reported one.

@williampma pls test before i merge it.